
///
/// class_reuse2.dart
///

class Point {
  num x = 0, y = 0;
  void printInfo() => print('($x, $y)');
}

class Vector extends Point {
  num z = 0;
  @override
  void printInfo() => print('($x, $y, $z)');
}

/// Mixin 混入
/// https://dart.cn/guides/language/language-tour#adding-features-to-a-class-mixins
///

class Coordinate with Point {}

void main() {
  var yy = Coordinate();
  print(yy is Point);
  print(yy is Coordinate);
}

